<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Course_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-course_id"
                   data-source="course/index" data-field="title"
                   data-multiple="false" class="form-control selectpage"
                   data-primary-key="id"
                   name="row[course_id]" disabled  type="text" value="{$courseID}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Grade_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--            <input id="c-grade_id" data-rule="required" data-source="grade/index" class="form-control selectpage" name="row[grade_id]" type="text" value="">-->
            <input id="c-grade_id" data-rule="required"
                   data-source="grade/selectpage" data-field="grade_name"
                   data-multiple="false" class="form-control selectpage"
                   data-primary-key="id"
                   name="row[grade_id]" type="text" value="">

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Subject_id')}:</label>
        <div class="col-xs-12 col-sm-8">

            <input id="c-subject_id" data-rule="required"
                   data-source="subject/selectpage" data-field="subject_name"
                   data-multiple="false" class="form-control selectpage"
                   data-primary-key="id"
                   name="row[subject_id]" type="text" value="">


        </div>
    </div>




    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lesson_id')}:</label>
        <div class="col-xs-12 col-sm-8">
<!--            <input id="c-lesson_id" data-rule="required" data-source="lesson/index" class="form-control selectpage" name="row[lesson_id]" type="text" value="">-->

            <input id="c-lesson_id"
                   data-source="course_lesson/index" data-field="title"
                   data-multiple="false" class="form-control selectpage"
                   data-primary-key="id"
                   data-params='{"custom[course_id]":"{$courseID}"}'
                   name="row[lesson_id]" type="text" value="">

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bank_tags')}:</label>
        <div class="col-xs-12 col-sm-8">
<!--            <input id="c-bank_tags" class="form-control" name="row[bank_tags]" type="text">-->
            <input id="c-bank_tags" data-rule="required"
                   data-source="question_bank_tag/selectpage" data-field="name"
                   data-multiple="true" class="form-control selectpage"
                   data-primary-key="name"
                   name="row[bank_tags]" type="text" value="">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('BankStatus')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="bankStatusList" item="vo"}
                <label for="row[bank_status]-{$key}"><input id="row[bank_status]-{$key}" name="row[bank_status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>



    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
